//
//  QRWebViewController.m
//  phoneTool
//
//  Created by HappyMilk 02 on 2017/7/31.
//  Copyright © 2017年 tomi. All rights reserved.
//

#import "QRWebViewController.h"
#import "LoginHeader.h"

@interface QRWebViewController ()<UIWebViewDelegate>
    
    @property (weak, nonatomic) IBOutlet UIWebView *webView;


@end

@implementation QRWebViewController
- (IBAction)dismiss:(id)sender {
    [self dismissViewControllerAnimated:YES completion:nil];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [_webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:_webUrl]]];
    SHOW_HUD(NSLocalizedStringFromTable(@"Loading...", @"QrcodePlist", nil));
}
- (void)webViewDidFinishLoad:(UIWebView *)webView{
    HIDE_HUD;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
